package cn.tedu.review;
/**回顾继承中资源的使用情况*/
public class TestAnimal {
    public static void main(String[] args) {
        Cat c1=new Cat();
        c1.eat();
    }

}
class Animal{
    int sum=1;
    int count=2;

}
class Cat extends Animal{
    int sum=10;
    public void eat(){
        int sum=100;
        System.out.println("小猫爱吃小鱼干");
        System.out.println(count);
        System.out.println(super.sum);
        System.out.println(this.sum);
        System.out.println(sum);
    }
}